 <?php
 
 echo '<div class="message-menu">';
	$inboxUrlArray = array('controller' =>'messages', 'action'=>'inbox');
	$sentUrlArray = array('controller' =>'messages', 'action'=>'sent');
	$composeUrlArray = array('controller' =>'messages', 'action'=>'write');
	echo '<a href="'.$this->url($inboxUrlArray, null, true).'">Inbox</a>';
	echo ' | ';
	echo '<a href="'.$this->url($composeUrlArray, null, true).'">Write new message</a>';
	echo ' | ';
	echo '<a href="'.$this->url($sentUrlArray, null, true).'">Sent</a>';
	
	echo '</div>';
	echo '<br/>';
 
 echo $this->message;
 echo $this->errorMessage;
 ?>